package cn.zyq.ykb.service.file;


import cn.zyq.ykb.beans.file.FileStorage;
import cn.zyq.ykb.beans.sys.SysAdmin;
import cn.zyq.ykb.system.common.PageParam;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletResponse;

public interface FileStorageService {
    PageInfo<FileStorage> list(PageParam pageParam, SysAdmin admin);

    void add(FileStorage param, SysAdmin admin);

    void update(FileStorage param, SysAdmin admin);

    void del(String serviceID, SysAdmin admin);

    FileStorage detail(String serviceID, SysAdmin admin);

    FileStorage detail(String serviceID);

    FileStorage findByKey(String key);

    void onlinePreview(String url, HttpServletResponse response) throws Exception;
}
